package com.frxuexi.park2303.notice

import androidx.databinding.DataBindingUtil
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.base.entity.NoticeBeanItem
import com.frxuexi.park2303.R
import com.frxuexi.park2303.databinding.ItemNoticeBinding

class NoticeAdapter2:BaseQuickAdapter<NoticeBeanItem,BaseViewHolder>(R.layout.item_notice) {
    override fun onItemViewHolderCreated(viewHolder: BaseViewHolder, viewType: Int) {
        super.onItemViewHolderCreated(viewHolder, viewType)
        DataBindingUtil.bind<ItemNoticeBinding>(viewHolder.itemView)
    }
    override fun convert(helper: BaseViewHolder, item: NoticeBeanItem) {
        val binding = DataBindingUtil.getBinding<ItemNoticeBinding>(helper.itemView)!!
        binding.bean=item
    }
}